object frmInvoiceEdit: TfrmInvoiceEdit
  Left = 395
  Top = 163
  Width = 761
  Height = 497
  Caption = #36827#38144#21333#25454
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  Position = poMainFormCenter
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object RzToolbar1: TRzToolbar
    Left = 0
    Top = 0
    Width = 745
    Height = 44
    Images = dm.il1
    RowHeight = 40
    ButtonLayout = blGlyphTop
    ButtonWidth = 40
    ButtonHeight = 40
    ShowButtonCaptions = True
    TextOptions = ttoCustom
    BorderInner = fsNone
    BorderOuter = fsGroove
    BorderSides = [sdTop]
    BorderWidth = 0
    TabOrder = 0
    ToolbarControls = (
      RzToolButton1
      RzToolButton2
      RzToolButton3
      RzToolButton4
      RzToolButton6
      RzToolButton5
      RzToolButton7)
    object RzToolButton1: TRzToolButton
      Left = 4
      Top = 2
      Width = 40
      Height = 40
      Layout = blGlyphTop
      UseToolbarButtonSize = False
      Action = actNew
    end
    object RzToolButton2: TRzToolButton
      Left = 44
      Top = 2
      Width = 40
      Height = 40
      Layout = blGlyphTop
      UseToolbarButtonSize = False
      Action = actEdit
    end
    object RzToolButton3: TRzToolButton
      Left = 84
      Top = 2
      Width = 40
      Height = 40
      Layout = blGlyphTop
      UseToolbarButtonSize = False
      Action = actDelete
    end
    object RzToolButton4: TRzToolButton
      Left = 124
      Top = 2
      Width = 40
      Height = 40
      Layout = blGlyphTop
      UseToolbarButtonSize = False
      Action = actSave
    end
    object RzToolButton5: TRzToolButton
      Left = 204
      Top = 2
      Width = 40
      Height = 40
      Layout = blGlyphTop
      UseToolbarButtonSize = False
      Action = actComplete
    end
    object RzToolButton6: TRzToolButton
      Left = 164
      Top = 2
      Layout = blGlyphTop
      Action = actCensor
    end
    object RzToolButton7: TRzToolButton
      Left = 244
      Top = 2
      Layout = blGlyphTop
      Action = actExit
    end
  end
  object RzPanel1: TRzPanel
    Left = 0
    Top = 44
    Width = 745
    Height = 36
    Align = alTop
    TabOrder = 1
    object RzLabel2: TRzLabel
      Left = 8
      Top = 11
      Width = 73
      Height = 13
      AutoSize = False
      Caption = #23458#25143#21517#31216
    end
    object RzBitBtn1: TRzBitBtn
      Left = 250
      Top = 6
      Width = 58
      Caption = #26597#25214
      TabOrder = 0
      OnClick = RzBitBtn1Click
      ImageIndex = 64
      Images = dm.il1
    end
    object edtOrderNotec: TRzDBEdit
      Left = 70
      Top = 9
      Width = 174
      Height = 21
      DataSource = dsMaster
      DataField = 'clientname'
      TabOrder = 1
    end
  end
  object RzPanel2: TRzPanel
    Left = 0
    Top = 80
    Width = 745
    Height = 113
    Align = alTop
    Color = 10092543
    TabOrder = 2
    object RzLabel1: TRzLabel
      Left = 40
      Top = 24
      Width = 96
      Height = 27
      Caption = #21333#25454#31867#21035
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -24
      Font.Name = #21326#25991#20013#23435
      Font.Style = []
      ParentFont = False
    end
    object RzLabel3: TRzLabel
      Left = 320
      Top = 24
      Width = 73
      Height = 13
      AutoSize = False
      Caption = #21333#25454#26085#26399
    end
    object RzLabel4: TRzLabel
      Left = 520
      Top = 24
      Width = 65
      Height = 13
      AutoSize = False
      Caption = #21333#25454#32534#30721
    end
    object RzLabel5: TRzLabel
      Left = 324
      Top = 88
      Width = 49
      Height = 13
      AutoSize = False
      Caption = #22791'   '#27880
    end
    object RzLabel9: TRzLabel
      Left = 324
      Top = 58
      Width = 51
      Height = 13
      AutoSize = False
      Caption = #21046#21333#20154
    end
    object RzDBLabel1: TRzDBLabel
      Left = 72
      Top = 64
      Width = 65
      Height = 25
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clRed
      Font.Height = -21
      Font.Name = #40657#20307
      Font.Style = []
      ParentFont = False
      DataField = 'OrderState'
      DataSource = dsMaster
    end
    object dteOrderDate: TRzDBDateTimeEdit
      Left = 382
      Top = 22
      Width = 123
      Height = 21
      DataSource = dsMaster
      DataField = 'OrderDate'
      TabOrder = 0
      EditType = etDate
    end
    object edtOrderNoteOrderNumber: TRzDBEdit
      Left = 584
      Top = 19
      Width = 139
      Height = 21
      DataSource = dsMaster
      DataField = 'OrderNumber'
      ReadOnly = True
      Color = clInfoBk
      TabOrder = 1
    end
    object edtOrderNoteActorName: TRzDBEdit
      Left = 381
      Top = 50
      Width = 124
      Height = 21
      DataSource = dsMaster
      DataField = 'ActorName'
      TabOrder = 2
    end
    object edtOrderNoteOrderNote: TRzDBEdit
      Left = 380
      Top = 80
      Width = 345
      Height = 21
      DataSource = dsMaster
      DataField = 'OrderNote'
      TabOrder = 3
    end
  end
  object RzPanel3: TRzPanel
    Left = 0
    Top = 193
    Width = 745
    Height = 247
    Align = alClient
    TabOrder = 3
    object RzPanel4: TRzPanel
      Left = 2
      Top = 2
      Width = 741
      Height = 39
      Align = alTop
      TabOrder = 0
      object RzBitBtn2: TRzBitBtn
        Left = 8
        Top = 8
        Action = actProductNew
        Caption = #26032#22686#26126#32454
        TabOrder = 0
      end
      object RzBitBtn3: TRzBitBtn
        Left = 86
        Top = 8
        Action = actProductEdit
        Caption = #32534#36753#26126#32454
        TabOrder = 1
      end
      object RzBitBtn4: TRzBitBtn
        Left = 166
        Top = 8
        Action = actProductDel
        Caption = #21024#38500#26126#32454
        TabOrder = 2
      end
    end
    object DBGridEh1: TDBGridEh
      Left = 2
      Top = 41
      Width = 741
      Height = 204
      Align = alClient
      DataGrouping.GroupLevels = <>
      DataSource = dsDetail
      Flat = False
      FooterColor = clWindow
      FooterFont.Charset = DEFAULT_CHARSET
      FooterFont.Color = clWindowText
      FooterFont.Height = -11
      FooterFont.Name = 'MS Sans Serif'
      FooterFont.Style = []
      RowDetailPanel.Color = clBtnFace
      TabOrder = 1
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'MS Sans Serif'
      TitleFont.Style = []
      Columns = <
        item
          EditButtons = <>
          FieldName = 'ID'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'OrderID'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'productname'
          Footers = <>
          Title.Caption = #21830#21697#21517#31216
          Width = 80
        end
        item
          EditButtons = <>
          FieldName = 'ProductID'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'EmptyAmount'
          Footers = <>
          Title.Caption = #31354#29942#25968#37327
        end
        item
          EditButtons = <>
          FieldName = 'FullAmount'
          Footers = <>
          Title.Caption = #23454#29942#25968#37327
        end
        item
          EditButtons = <>
          FieldName = 'price'
          Footers = <>
          Title.Caption = #21333#20215
        end
        item
          EditButtons = <>
          FieldName = 'totalsum'
          Footers = <>
          Title.Caption = #21512#35745
        end
        item
          EditButtons = <>
          FieldName = 'ItemNote'
          Footers = <>
          Title.Caption = #22791#27880
          Width = 200
        end>
      object RowDetailData: TRowDetailPanelControlEh
      end
    end
  end
  object RzStatusBar1: TRzStatusBar
    Left = 0
    Top = 440
    Width = 745
    Height = 19
    BorderInner = fsNone
    BorderOuter = fsNone
    BorderSides = [sdLeft, sdTop, sdRight, sdBottom]
    BorderWidth = 0
    TabOrder = 4
  end
  object qryMaster: TADOQuery
    Connection = dm.conn
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'id'
        Attributes = [paNullable]
        DataType = ftWideString
        NumericScale = 255
        Precision = 255
        Size = 510
        Value = Null
      end>
    SQL.Strings = (
      'select * from ordermaster  where id=:id')
    Left = 184
    Top = 152
    object atncfldMasterID: TAutoIncField
      FieldName = 'ID'
      ReadOnly = True
    end
    object wdstrngfldMasterOrderNumber: TWideStringField
      FieldName = 'OrderNumber'
      Size = 255
    end
    object qryMasterOrderDate: TDateTimeField
      FieldName = 'OrderDate'
    end
    object wdstrngfldMasterOrderType: TWideStringField
      FieldName = 'OrderType'
      Size = 10
    end
    object wdstrngfldMasterOrderState: TWideStringField
      FieldName = 'OrderState'
      Size = 10
    end
    object intgrfldMasterClientID: TIntegerField
      FieldName = 'ClientID'
    end
    object wdstrngfldMasterOrderNote: TWideStringField
      FieldName = 'OrderNote'
      Size = 200
    end
    object wdstrngfldMasterOrderSummary: TWideStringField
      FieldName = 'OrderSummary'
      Size = 120
    end
    object wdstrngfldMasterIsComplete: TWideStringField
      FieldName = 'IsComplete'
      Size = 2
    end
    object wdstrngfldMasterIsCancel: TWideStringField
      FieldName = 'IsCancel'
      Size = 2
    end
    object wdstrngfldMasterActorName: TWideStringField
      FieldName = 'ActorName'
      Size = 10
    end
    object strngfldMasterclientname: TStringField
      FieldKind = fkLookup
      FieldName = 'clientname'
      LookupDataSet = dm.qryClient
      LookupKeyFields = 'ID'
      LookupResultField = 'ClientName'
      KeyFields = 'ClientID'
      Lookup = True
    end
  end
  object qryDetail: TADOQuery
    Connection = dm.conn
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    BeforePost = qryDetailBeforePost
    Parameters = <
      item
        Name = 'id'
        Attributes = [paNullable]
        DataType = ftInteger
        NumericScale = 255
        Precision = 255
        Value = 3
      end>
    SQL.Strings = (
      'select * from orderdetail where orderid=:id')
    Left = 248
    Top = 152
    object atncfldDetailID: TAutoIncField
      FieldName = 'ID'
    end
    object intgrfldDetailOrderID: TIntegerField
      FieldName = 'OrderID'
    end
    object intgrfldDetailProductID: TIntegerField
      FieldName = 'ProductID'
    end
    object intgrfldDetailEmptyAmount: TIntegerField
      FieldName = 'EmptyAmount'
    end
    object intgrfldDetailFullAmount: TIntegerField
      FieldName = 'FullAmount'
    end
    object wdstrngfldDetailItemNote: TWideStringField
      FieldName = 'ItemNote'
      Size = 255
    end
    object strngfldDetailproductname: TStringField
      FieldKind = fkLookup
      FieldName = 'productname'
      LookupDataSet = dm.qryProduct
      LookupKeyFields = 'ID'
      LookupResultField = 'ProductName'
      KeyFields = 'ProductID'
      Lookup = True
    end
    object qryDetailprice: TFloatField
      FieldName = 'price'
    end
    object qryDetailtotalsum: TFloatField
      FieldName = 'totalsum'
    end
  end
  object dsMaster: TDataSource
    DataSet = qryMaster
    Left = 288
    Top = 152
  end
  object dsDetail: TDataSource
    DataSet = qryDetail
    Left = 296
    Top = 192
  end
  object actlstToolBar: TActionList
    Images = dm.il1
    Left = 384
    Top = 52
    object actNew: TAction
      Caption = #26032#22686
      ImageIndex = 15
      OnExecute = actNewExecute
    end
    object actEdit: TAction
      Caption = #32534#36753
      ImageIndex = 26
      OnExecute = actEditExecute
    end
    object actDelete: TAction
      Caption = #21024#38500
      ImageIndex = 32
      OnExecute = actDeleteExecute
    end
    object actSave: TAction
      Caption = #20445#23384
      ImageIndex = 29
      OnExecute = actSaveExecute
    end
    object actComplete: TAction
      Caption = #20837#24080
      ImageIndex = 112
      OnExecute = actCompleteExecute
    end
    object actCensor: TAction
      Caption = #23457#26680
      ImageIndex = 129
      OnExecute = actCensorExecute
    end
    object actExit: TAction
      Caption = #36864#20986
      ImageIndex = 44
      OnExecute = actExitExecute
    end
  end
  object actlstDetail: TActionList
    Images = dm.il1
    Left = 552
    Top = 249
    object actProductNew: TAction
      Caption = #26032#22686#26126#32454
      OnExecute = actProductNewExecute
    end
    object actProductEdit: TAction
      Caption = #32534#36753#26126#32454
      OnExecute = actProductEditExecute
    end
    object actProductDel: TAction
      Caption = #21024#38500#26126#32454
      OnExecute = actProductDelExecute
    end
  end
  object qryClient: TADOQuery
    Connection = dm.conn
    CursorType = ctStatic
    Parameters = <
      item
        Name = 'id'
        Attributes = [paNullable]
        DataType = ftWideString
        NumericScale = 255
        Precision = 255
        Size = 510
        Value = Null
      end>
    SQL.Strings = (
      'select * from client where id=:id')
    Left = 328
    Top = 36
  end
  object dsClient: TDataSource
    DataSet = qryClient
    Left = 344
    Top = 68
  end
end
